<extend name="Public/common" />
<block name="body">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>编辑会员</h5>
                </div>
                <div class="ibox-content">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">会员姓名</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" value="{$member.user}" placeholder="请填写会员姓名" id="name">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">上传寸照</label>
                            <div class="col-sm-10">
                                <img src="{$member.pic}" class="images" style="width:100px;margin-bottom: 2px;"/>
                                <!--dom结构部分-->
                                <div id="uploader-demo">
                                    <!--用来存放item-->
                                    <div id="fileList" class="uploader-list" style="width:100px;"></div>
                                    <div id="filePicker"><i class="fa fa-upload"></i> 选择照片</div>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                会员性别
                            </label>

                            <div class="col-sm-10">
                                <div class="radio i-checks">
                                    <label><input type="radio" value="0" name="sex" <if condition="($member['sex'] eq 1)"> checked="checked" </if> > <i></i> 男</label>
                                    <label><input type="radio" value="1" name="sex" <if condition="($member['sex'] eq 2)"> checked="checked" </if> > <i></i>女</label>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">出生日期</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="birthday" value="{$member.birthday}"  placeholder="请填写出生日期" id="birthday"  onclick="laydate();">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <!--                        <div class="form-group">
                                                    <label class="col-sm-2 control-label">照片</label>

                                                    <div class="col-sm-10">
                                                        <input type="text" class="form-control" name="picture " placeholder="请填写个人简介" id="picture">
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>-->



                        <div class="form-group" style="display:none;">
                            <label class="col-sm-2 control-label">身份证有效期</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control layer-date" name="card_start" value="{$member.card_start}" placeholder="身份证开始时间" id="start">
                                <input type="text" class="form-control layer-date" name="card_end" value="{$member.card_end}" placeholder="身份证到期时间" id="end">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">联系电话</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="phone" value="{$member.phone}" placeholder="请填写联系电话" id="phone">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">入会时间</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control layer-date" name="come_time" value="{$member.regtime}" placeholder="请填写注册时间" id="come_time"  onclick="laydate();">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">现居住地</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="address_now" value="{$member.addres}" placeholder="请填写居住地" id="address_now">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" id="save">保存内容</button>
                                <button class="btn btn-white" type="button" onclick="history.go(-1);">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    //定义全局变量
    var GV = {
        member_editmember : "{:U('Member/editMember')}",
        member_id : "{$member.id}"
    };
</script>
<script src="__JS__/http/member/editmember.js"></script>
<script src="__JS__/http/upload.js"></script>
</block>